package com.yiwyn.demo.utils.modify.handle.event;

import com.yiwyn.demo.domain.Shop;
import com.yiwyn.demo.utils.modify.handle.event.base.BaseTypeEvent;

public class ShopModifyTypeEvent extends BaseTypeEvent<Shop> {

    public static final String EVENT_ADDRESS = "event.address";


    @Override
    public void registerEvent() {
        eventMap.put(EVENT_ADDRESS, modifyItem -> {
            Object newValue = modifyItem.getNewValue();
            modifyItem.setNewValueDescription("事件触发" + newValue);
            Object oldValue = modifyItem.getOldValue();
            modifyItem.setOldValueDescription("事件触发" + oldValue);
        });

    }
}
